//
//  LFHomeViewController.m
//  College
//
//  Created by LF on 2018/11/7.
//  Copyright © 2018 MuXi. All rights reserved.
//

#import "LFHomeViewController.h"
#import "LFHomeView.h"

@interface LFHomeViewController ()

@property (nonatomic, strong) UILabel *lb; /**< lb */
@property (nonatomic, strong)  LFHomeView* mainView; /**< view */
@property (nonatomic, strong) LFHomeVM *viewModel; /**< vm */

@end

@implementation LFHomeViewController

- (void)updateViewConstraints {
    [self.mainView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.equalTo(self.view);
        make.bottom.equalTo(self.view).with.offset(-tabBarHeight);
    }];
    [super updateViewConstraints];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"首页";
}

- (void)lf_addSubviews {
    [self.view addSubview:self.mainView];
}

- (void)lf_bindViewModel {
    
}

- (LFHomeView *)mainView {
    if (!_mainView) {
        _mainView = [[LFHomeView alloc] initWithViewModel:self.viewModel];
    }
    return _mainView;
}

- (LFHomeVM *)viewModel {
    if (!_viewModel) {
        _viewModel = [[LFHomeVM alloc] init];
    }
    return _viewModel;
}

@end
